Save XML

Reading and Writing XML in C#

Asp.net - 2012-07-25
>In this article, you will see how to read and write XML documents in Microsoft .NET using C# language. > >Reading XML Documents >In my sample application, I'm using books.xml to read and display its data through XmlTextReader. This file comes with VS.NET samples. You can search this on your machine and change the path of the file in the following line: >XmlTextReader textReader = new XmlTextReader("C:\\books.xml"); >Or you can use any XML file. >The XmlTextReader, XmlNodeReader and XmlValidatingReader classes are derived from XmlReader class. Besides Xm